import request from "@/utils/request";
/**
 *根据输入值计算照度
 * @param data
 */
export function cal_lux(data) {
    return request({
        url: `/v2/device/calculate/opt/cal_lux.json`,
        method: "get",
        params: data
    });
}
/**
 *根据输入值计算照度echart图
 * @param data
 */
export function cal_data(data) {
    return request({
        url: `/v2/device/calculate/opt/cal_data.json`,
        method: "get",
        params: data
    });
}
/**
 *获取设备计算指标
 * @param deviceId
 */
export function attainment_rate(deviceId) {
    return request({
        url: `v2/platform/opt/attainment_rate.json?deviceId=${deviceId}`,
        method: "get"
    });
}